package com.sbj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:41
 * 会员信息
 */
@Getter
@Setter
@TableName("member")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("nickName")
    private String nickName;

    @TableField("phone")
    private String phone;

    @TableField("password")
    private String password;

    /**
     * 邀请码
     */
    @TableField("inviter_code")
    private String inviterCode;


    @TableField("inviter")
    private String inviter;

    /**
     * 头像
     */
    @TableField("avatar_image")
    private String avatarImage;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


    /**
     * 我的奖金
     */
    @TableField("bonus")
    private BigDecimal bonus;

    /**
     * 推广奖金
     */
    @TableField("extension")
    private BigDecimal extension;

    /**
     * 余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 优惠券
     */
    @TableField("coupons")
    private BigDecimal coupons;

    @TableField("sign_name")
    private String sign;

    @TableField("startTime")
    private LocalDateTime startTime;

    @TableField("endTime")
    private LocalDateTime endTime;

    @TableField("is_privilege")
    private Boolean isPrivilege;
}
